package cdu.javaendwork.model.sqlModel;

public class Collect {
    private int id;
    private int userid;
    private int postid;

    public Collect() {
    }

    public Collect(int id, int userid, int postid) {
        this.id = id;
        this.userid = userid;
        this.postid = postid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getPostid() {
        return postid;
    }

    public void setPostid(int postid) {
        this.postid = postid;
    }

    @Override
    public String toString() {
        return "Collect{" +
                "id=" + id +
                ", userid=" + userid +
                ", postid=" + postid +
                '}';
    }
}
